package cn.cdeden.knowledge.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
    * 日历表
    */
@Data
@TableName(value = "sys_schedule")
public class SysSchedule {
    /**
     * 日历主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 日历名称
     */
    @TableField(value = "schedule_name")
    private String scheduleName;

    /**
     * 创建人ID
     */
    @TableField(value = "create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 颜色代码
     */
    @TableField(value = "schedule_color")
    private String scheduleColor;

    /**
     * 日历权限[0:私有只有加入人员可以查看  1：公开的：所有人员可以查看]
     */
    @TableField(value = "schedule_purview")
    private Integer schedulePurview;

    public static final String COL_ID = "id";

    public static final String COL_SCHEDULE_NAME = "schedule_name";

    public static final String COL_CREATE_BY = "create_by";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_SCHEDULE_COLOR = "schedule_color";

    public static final String COL_SCHEDULE_PURVIEW = "schedule_purview";
}
